package com.suneee.store.entity;

import java.io.Serializable;

import com.suneee.orm.annotation.Column;
import com.suneee.orm.annotation.Entity;
import com.suneee.orm.annotation.GeneratedValue;
import com.suneee.orm.annotation.GenerationType;
import com.suneee.orm.annotation.Id;
import com.suneee.orm.annotation.Table;

@Entity
@Table(name = "t_stock_detail")
public class StockDetail implements Serializable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 7801845602609885715L;
	
	/**
	 * 唯一id
	 */
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name="id",nullable=false)
	private Integer id;
	/**
	 * 单号ID
	 */
	@Column(name="record_id",nullable=false)
	private String recordId;
	/**
	 * spu_id
	 */
	@Column(name="spu_id",nullable=false)
	private Integer spuId;
	/**
	 * sku_id
	 */
	@Column(name="sku_id",nullable=false)
	private Integer skuId;
	/**
	 * 数量
	 */
	@Column(name="incoming")
	private Integer incoming;
	/**
	 * 状态
	 */
	@Column(name="status")
	private String status;
	/**
	 * 已回退数
	 */
	@Column(name="fallback")
	private Integer fallback;
	/**
	 * 失败原因
	 */
	@Column(name="fail_reason")
	private String failReason;
	/**
	 * 价格
	 */
	@Column(name="price")
	private Float price;
	
	
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getRecordId() {
		return recordId;
	}
	public void setRecordId(String recordId) {
		this.recordId = recordId;
	}
	public Integer getSkuId() {
		return skuId;
	}
	public void setSkuId(Integer skuId) {
		this.skuId = skuId;
	}
	public Integer getIncoming() {
		return incoming;
	}
	public void setIncoming(Integer incoming) {
		this.incoming = incoming;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public Integer getFallback() {
		return fallback;
	}
	public void setFallback(Integer fallback) {
		this.fallback = fallback;
	}
	
	public String getFailReason() {
		return failReason;
	}
	public void setFailReason(String failReason) {
		this.failReason = failReason;
	}
	public Float getPrice() {
		return price;
	}
	public void setPrice(Float price) {
		this.price = price;
	}
	public Integer getSpuId() {
		return spuId;
	}
	public void setSpuId(Integer spuId) {
		this.spuId = spuId;
	}
}
